package com.weatherinczbackend.exceptions;

/**
 * Checked version of NullObjectException.
 *
 * @author Michal Stava <stavamichal@gmail.com>
 */
public class NullObjectException extends InternalErrorException {

    String nameOfObject;
    
    public NullObjectException(String message) {
        super(message);
    }

    public NullObjectException(String message, Throwable cause) {
        super(message, cause);
    }

    public NullObjectException(Throwable cause) {
        super(cause);
    }
    
    public NullObjectException(String message, String nameOfObject, Throwable cause) {
        super(message, cause);
        this.nameOfObject = nameOfObject;
    }
    
    public NullObjectException(String message, String nameOfObject) {
        super(message);
        this.nameOfObject = nameOfObject;
    }
    
    public NullObjectException(Throwable cause, String nameOfObject) {
        super(cause);
        this.nameOfObject = nameOfObject;
    }

    public String getNameOfObject() {
        return nameOfObject;
    }

    public void setNameOfObject(String nameOfObject) {
        this.nameOfObject = nameOfObject;
    }
}
